package com.jic.manager.service;

import com.jic.common.base.vo.Page;
import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.manager.entity.ProductComment;
import com.jic.conf.request.rest.UpdateProductCommentRequest;

import java.util.List;

/**
* 商品评价表
* @author : 
* @email : 
* @since : 2020-02-10 05:50:14
* @version : v1.0.0
*/
public interface ProductCommentService {

    long insert(ProductComment productComment);

    long delete(Long id);

    long update(ProductComment productComment);

    ProductComment queryByPrimaryKey(Long id);

    List<ProductComment> query(ProductComment productComment);

    PageResult<ProductComment> queryPage(ProductComment productComment, Page pageQuery);

    long queryCount(ProductComment productComment);

    RestResult<String> updateProductComment(UpdateProductCommentRequest updateProductComment);
}